package cn.sjtu.java_util_concurrent.lock;

/**
 * @author syo 2319615164@qq.com
 * @description 设置守护线程
 * @date 2024/6/12
 * @Copyright syo
 */
public class TestDaemonThread {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println("守护线程");
        });
        thread.setDaemon(true);
        thread.start();
    }
}
